package com.seashell;

/**
 * <ul>
 * <li>文件名称 : com.seashell.SqlCreator
 * </li>
 * <li>版权所有 : 版权所有(C)2016-2020</li>
 * <li>公 司 : CST</li>
 * <li>创建时间 : 2017/1/17</li>
 * <li>修改记录 : </li>
 * </ul>
 * 类说明：
 *
 * @author Allen
 * @version 1.0
 */
public class SqlCreator {
    private static final String SQL = "insert into PLC.EMP (sheet,grade,EMPNO,ENAME,JOB,SAL) values('%s','%s','%s','%s','%s','%s');";

    public static String make(String sheet,String grade,String EMPNO,String ENAME,String JOB,String SAL){
        return String.format(SQL,sheet,grade,EMPNO,ENAME,JOB,SAL);
    }

    public static String make(Object sheet,Object grade,Object EMPNO,Object ENAME,Object JOB,Object SAL){
        return String.format(SQL,sheet,grade,EMPNO,ENAME,JOB,SAL);
    }
}
